package lab02.test05;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Cube cube = new Cube();
        cube.initialize();

        Scanner sc = new Scanner(System.in);
        System.out.println("输入立方体长：");
        double length = sc.nextFloat();
        cube.setLength(length);

        System.out.println("输入立方体的宽：");
        float wide = sc.nextFloat();
        cube.setWide(wide);

        System.out.println("输入立方体的高：");
        float high = sc.nextFloat();
        cube.setHigh(high);

        System.out.println("体积为：" + cube.Volume());

    }
}
